extends "../qianwei-1/qianwei-1.gd"


func _extInit():
	._extInit()
	lv = 2             #等级的设置
	addSkill("对血量低于25%的敌人造成炮击伤害时，将其秒杀", "斩杀")
var p2 = 0.25
func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType == sys.AtkType.GUN and atkInfo.hitCha.att.hp/atkInfo.hitCha.att.maxHp <= p2:
		atkInfo.virtual = true
		masCha.utils.createSkillTextEff("斩杀", masCha.position)
		atkInfo.hitCha.forceHurtSelf(atkInfo.hitCha.att.maxHp)
		masCha.increDmgNum(atkInfo.hitCha.att.hp, "斩杀", atkInfo.hitCha)		